<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/4
  Time: 15:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../common/web_top.jsp" %>
<title>押金管理</title>
<div ng-include="finance" class="includeStyle ">

        <div class="bgSortScroll">
            <!-- ngIf: HbHr.hr167 -->
            <div class="public-bgContent " ng-show="financeShow._default"   ng-if="HbHr.hr167">
                <!--表单搜索-->
                <div class="public-bgDate">
                    <div class="se-re">
                        <select ng-model="param.time_type" ng-class="{'error':redErr.time_type}" ng-focus="remHight()"
                                ng-change="changeType()" class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">时间类型</option>
                            <option value="1">处理时间</option>
                            <option value="2">创建时间</option>
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <span>
            <input type="text" autocomplete="off" id="start_time" ng-model="param.start_time" ng-focus="remHight()"
                   ng-class="{'error':redErr.dateTime}" placeholder="开始时间"
                   class="ng-pristine ng-untouched ng-valid ng-empty datepicker">
            <i class="iconfont icon-riqi"></i>
        </span>
                    <em>
                        ~
                    </em>
                    <span>
            <input type="text" autocomplete="off" id="end_time" ng-model="param.end_time" ng-focus="remHight()"
                   ng-class="{'error':redErr.dateTime}" placeholder="结束时间"
                   class="ng-pristine ng-untouched ng-valid ng-empty datepicker">
            <i class="iconfont icon-riqi"></i>
        </span>
                    <!-- <div class="se-re">
                        <select
                        id="seleNames"
                        ng-model="param.type"
                        >
                            <option value="">类型</option>
                            <option value="1">保证金</option>
                        </select>
                        <span class="se-po"></span>
                    </div> -->
                    <span>
            <input style="width: auto;" type="text" autocomplete="off" id="inputNames" placeholder="请输入客户姓名/借款编号" ng-model="param.name"
                   class="ng-pristine ng-untouched ng-valid ng-empty">
        </span>
                    <div class="se-re">
                        <select>
                            <option value="处理次数">处理次数</option>
                        </select>
                        <span class="se-po"></span>
                    </div>

                    <!-- <div class="se-re">
                        <select ng-model="param.loan_way">
                            <option value="">贷款方式</option>
                            <option value="1"></option>
                            <option value="2"></option>
                            <option value="3"></option>
                        </select>
                        <span class="se-po"></span>
                    </div> -->
                    <button ng-click="btn()">
                        <i class="iconfont icon-sousuo"></i>
                    </button>
                </div>
                <!--提示操作-->
                <div id="deposit_content"></div>
                <script id="deposit_content_tpl" type="x-handlebars-template">
                    <div class="public-bghint">
                        <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                        <i class="iconfont icon-icon-copy-copy"></i>
                        <span class="calNum">筛选<span class="">{{content.total}}</span>条结果</span>
                    </div>
                    <ul class="public-ulList" ng-show="loanLaterShow.caozuo">
                        <li>显示押金关联的所有订单金额列表</li>
                        <li>显示拥有该栏目管理权限的数据；</li>
                        <li>拥有权限的管理员会显示对应的操作按钮；</li>
                        <!-- <li>放款后的关联订单的押金才会显示到下面列表</li> -->
                    </ul>
                    <div style="height: 20px;"></div>
                    <div class="table-scroll">
                        <!--tabel 列表-->
                        <table class="table public-table PoInput">
                            <thead>
                            <tr>
                                <td>全选</td>
                                <td>创建时间</td>
                                <td>类型</td>
                                <td>关联借款编号</td>
                                <td>客户姓名</td>
                                <td>押金金额</td>
                                <td>处理金额</td>
                                <td>剩余金额</td>
                                <td>处理次数</td>
                                <td>处理时间</td>
                                <td>操作</td>
                            </tr>
                            </thead>

                            <tbody id="deposit_content">

                            </tbody>

                            <tfoot class="public-botPage">
                            <tr>
                                <td>
                                    <!-- 全选反选  -->
                                    <input type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
                                </td>
                                <td colspan="12">
                                    <div class="public-botPage-left">
                            <span>
                                <span>全选</span>
                            </span>
                                        <div class="se-re">
                                            <select class="tabHint supportc ng-pristine ng-untouched ng-valid ng-not-empty"
                                                    id="selExportvalid" ng-model="selExportval"
                                                    ng-change="selExport(this)">
                                                <option value="-1" selected="selected">批量操作</option>
                                                <!-- ngIf: HbHr.hr280 -->
                                                <option value="1" ng-if="HbHr.hr280" class="">批量导出</option>
                                                <!-- end ngIf: HbHr.hr280 -->
                                            </select>
                                            <span class="se-po"></span>
                                        </div>
                                    </div>
                                    <div class="public-botPage-right">
                                        <!-- 页码公共引进  'work/tems3/loanBefore/page/page.html'-->

                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                        <!--底部操作-->
                    </div>
                </script>
            </div><!-- end ngIf: HbHr.hr167 -->
        </div>

</div>
<script id="deposit_content_tpl" type="x-handlebars-template">
    {{#if content.list}}
    {{#each content.list}}
    <tr ng-repeat="i in data.content.list" ng-click="F.tabClick($event)"
    class="table-tr-hover ">
        <td><input type="checkbox" name="ch_id" value="249"></td>
        <td class="">2018-03-29 11:48:09</td>
    <!-- ngIf: i.type=='1' -->
    <td ng-if="i.type=='1'" class="">保证金</td><!-- end ngIf: i.type=='1' -->
        <td class="">FD20180314175200958</td>
        <td class="">陶秋良</td>
        <td class="">￥2,700.00</td>
    <td class="">￥0.00</td>
    <td class="">￥2,700.00</td>
    <td class="">0</td>
        <!-- <td ng-if="i.transtime<=0"></td> -->
        <td class="">--</td>
        <td>
        <div class="se-re sel-blue">
        <select ng-click="F.stopPropagation($event)"
    class="tabHint deno249 ng-not-empty"
    ng-model="selectType.default" ng-change="F.selectQuery('deno249')">
        <option value="-1" selected="selected">选择操作</option>
        <!-- <option value="2" ng-if="HbHr.hr168 && i.type=='1' && i.residual_amount>0" path="finance" params="dealBroken" param="id:{{i.id}},type:{{i.type}},num:{{i.frequency}},deposit:{{i.deposit}},residual_amount:{{i.residual_amount}}">处理违章</option>
        <option value="2" ng-if="HbHr.hr168 && i.type=='2' && i.residual_amount>0" path="finance" params="dealGuara" param="id:{{i.id}},type:{{i.type}},num:{{i.frequency}},deposit:{{i.deposit}},residual_amount:{{i.residual_amount}}">处理保单</option>
        <option value="2" ng-if="HbHr.hr168 && i.type=='3' && i.residual_amount>0" path="finance" params="dealCheck" param="id:{{i.id}},type:{{i.type}},num:{{i.frequency}},deposit:{{i.deposit}},residual_amount:{{i.residual_amount}}">处理年审</option> -->
        <!-- ngIf: HbHr.hr168 && i.type=='1' && i.residual_amount>0 -->
        <option value="4"
    ng-if="HbHr.hr168 &amp;&amp; i.type=='1' &amp;&amp; i.residual_amount>0"
        path="finance" params="dealCheck"
    param="id:249,type:1,num:0,deposit:2700,residual_amount:2700"
    class="">处理保证金
        </option><!-- end ngIf: HbHr.hr168 && i.type=='1' && i.residual_amount>0 -->
        <!-- ngIf: HbHr.hr169 && i.residual_amount>0 -->
        <option value="3" ng-if="HbHr.hr169 &amp;&amp; i.residual_amount>0"
        path="finance" params="reimburse"
    param="id:249,deposit:2700,residual_amount:2700" class="">
        余额退款
        </option><!-- end ngIf: HbHr.hr169 && i.residual_amount>0 -->
        </select>
        <span class="se-po-blue"></span>
        </div>
        <!--<select class="tabHint" ng-click="toggleView('finance','waitingLoan')">
        <option>选择操作</option>
        <option>处理违章</option>
        <option>余额退款</option>
        </select>-->
        <!-- ngIf: HbHr.hr264 -->
        <button class="operations_record tabHint btnQuery249" id="{{id}}">
        操作记录
        </button><!-- end ngIf: HbHr.hr264 -->
        </td>
        </tr>
    {{/each}}
        {{else}}
    <tr ng-if="data.content.list.length ==0" class="">
            <td colspan="16">暂时找不到数据</td>
            </tr>
        {{/if}}
</script>
<script type="text/javascript" src="static/js/page/finance/deposit/deposit.js?_v=190102162154"></script>
<%@include file="../../common/web_bottom.jsp" %>